package com.x.provider.api.oss.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.x.core.web.api.R;
import com.x.provider.api.oss.constants.ServiceNameConstants;
import com.x.provider.api.oss.model.dto.face.IdCardVerificationReqDTO;
import com.x.provider.api.oss.model.dto.map.DistrictDTO;
import com.x.provider.api.oss.model.dto.map.DistrictListRequestDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "mapService", value = ServiceNameConstants.OSS_SERVICE)
public interface MapRpcService {

    @PostMapping(ServiceNameConstants.MAP_URL_PREFIX + "/district/list")
    R<List<DistrictDTO>> listDistrict(@RequestBody DistrictListRequestDTO reqDTO) throws JsonProcessingException;
}
